//
//  ImageXQViewController.m
//  TravelYo
//
//  Created by lanou3g on 15/10/27.
//  Copyright © 2015年 TravelYo. All rights reserved.
//

#import "ImageXQViewController.h"

@interface ImageXQViewController ()

@end

@implementation ImageXQViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBar.translucent = NO;
    [self addSubView];
    // Do any additional setup after loading the view.
}

- (void)addSubView
{
    self.webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, kScreenHeight)];
    NSURL *url = [NSURL URLWithString:self.url];
    [self.webView loadRequest:[NSURLRequest requestWithURL:url cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:30.0]];
    self.webView.scrollView.bounces = NO;
    self.webView.scalesPageToFit = YES;
    [self.view addSubview:self.webView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
